<?php
/**
 * Created by PhpStorm.
 * User: FattyPanda
 * Date: 2017/10/12
 * Time: 11:06
 */

namespace App\Http\Controllers\Home;


use Illuminate\Support\Facades\Auth;

class IndexController extends BaseController
{
    public function index ()
    {
        return view('home.index');
    }

    public function hello ()
    {
        return view( 'home.hello');
    }

    public function query()
    {
        $id = Auth::id();
        return response()->json( [ 'message' => 'request success, user id is '.$id.'!'. ' '.time().'']);
    }
}